import config from '../config'

class Actions {
  ajax (opts = {}) {
    opts = $.extend({
      type: 'GET',
      dataType: 'json',
    }, opts, {
      url: `/${config.project}` + opts.url
    })

    return $.ajax(opts)
  }
}

export default Actions
